cslots: Maintain experiment while in development

This commit is contained in:
Mal Graty
2025-01-04 10:59:04 +00:00
parent 2b63ccf21e
commit 407f3ad859
2 changed files with 5 additions and 4 deletions
+1
View File
@@ -0,0 +1 @@
../../renpy/cslots.pyx
+4 -4
View File
@@ -4,16 +4,16 @@ import pickle
from cslots import Object, Slot, IntegerSlot
class C1(Object):
str1 : Slot[str|None] = Slot(None)
int1 : IntegerSlot = IntegerSlot(0)
str1 : str|None = None
int1 : int = 0
def __init__(self, str1=None, int1=1):
self.str1 = str1
self.int1 = int1
class C2(C1):
str2 : Slot[str|None] = Slot(None)
int2 : IntegerSlot = IntegerSlot(0)
str2 : str|None = None
int2 : int = 0
def __init__(self, str1=None, int1=0, str2=None, int2=0):
self.str1 = str1