Advertisement
Kalciphoz

Static Tutorial

Jun 30th, 2016
2,918
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.49 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.         public static int numberOfObjects = 0;
  7.  
  8.         public int index;
  9.  
  10.         public ClassTutorial() //This is the CONSTRUCTOR
  11.         {
  12.             index = numberOfObjects
  13.             objects[index] = this;
  14.             numberOfObjects += 1;
  15.         }
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement