Advertisement
Kalciphoz

Array Tutorial

Jun 30th, 2016
3,084
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.43 KB | None | 0 0
  1. namespace TutorialProject //This is the NAMESPACE, or name of the project. In Modding, this will usually be the name of the Mod.
  2. {
  3.     public class ClassTutorial //This is the CLASS DEFINITION
  4.     {
  5.         public static ClassTutorial[] objects = new ClassTutorial[100];
  6.  
  7.         public int index;
  8.  
  9.         public ClassTutorial(int index) //This is the CONSTRUCTOR
  10.         {
  11.             this.index = index;
  12.             objects[index] = this;
  13.         }
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement