setId() public static method

public static setId ( ) : int
return int
Example #1
0
        public Dialog(Point Position, Size Size, string Caption = "", string Text = "", int Depth = 0, state Type = state.message, Form1 f = null)
        {
            this.Position = Position;
            this.Size     = Size;
            this.Caption  = Caption;
            this.Text     = Text;
            this.Depth    = Depth;
            this.Type     = Type;

            nextDialog            = null;
            Id                    = Globalization.setId();
            DialogueStart         = false;
            nextDialogID          = -1;
            Rotation              = 0;
            nextDialogBranch      = null;
            nextDialogBranchId    = -1;
            nextConditionDialog   = null;
            nextActionDialog      = null;
            messageAttachedWire   = -1;
            startPosition         = Position;
            startPositionUnzoomed = Position;
            Rotation              = 0;

            Update(f);
        }
Example #2
0
 public Dialog()
 {
     nextDialog          = null;
     Id                  = Globalization.setId();
     DialogueStart       = false;
     nextDialogID        = -1;
     Type                = state.message;
     Rotation            = 0;
     nextDialogBranch    = null;
     nextDialogBranchId  = -1;
     nextConditionDialog = null;
     messageAttachedWire = -1;
     Rotation            = 0;
 }